package part17_策略模式_鸭子问题.策略加工厂解决ifelse;

import part17_策略模式_鸭子问题.策略加工厂解决ifelse.pojo.Employee;
import part17_策略模式_鸭子问题.策略加工厂解决ifelse.pojo.LeaveForm;

/**
 * @ClassName: testClient
 * @Author: AllenSun
 * @Date: 2023/2/11 下午10:03
 */
public class testClient {
    public static void main(String[] args) {
        LeaveServiceOld leaveServiceOld = new LeaveServiceOld();
        LeaveServiceNew leaveServiceNew = new LeaveServiceNew();

        LeaveForm leaveForm01 = new LeaveForm(new Employee("小王",1),"请假结婚",4,1);
        LeaveForm leaveForm02 = new LeaveForm(new Employee("张三",9),"送小姨子去坐车",5,1);

        // leaveServiceOld.audit(leaveForm);
        leaveServiceNew.audit(leaveForm01);
        leaveServiceNew.audit(leaveForm02);

    }
}
